<?php

namespace Home\Controller;

use Think\Controller;
include 'base.php';
class IntroController extends BaseController{

    public function index(){
        $cate = M('category')->select();
        $introImg = M('intro_pho')->order('id desc')->limit(0,3)->select();
        $introArt = M('intro_art')->order('id desc')->limit(0,1)->select();

//        $aboutImg = M('about_pho')->order('id desc')->limit(0,2)->select();
//        $chooseImg = M('choose_pho')->order('id desc')->limit(0,1)->select();
//        $pro_disImg = M('pro_dis_pho')->order('id desc')->limit(0,3)->select();
//        $bannerImg = M('banner_pho')->order('id desc')->limit(0,3)->select();
//        $aboutArt = M('about_art')->order('id desc')->limit(0,1)->select();
//        $chooseArt = M('choose_art')->order('id desc')->limit(0,1)->select();
//        $pro_disArt = M('pro_dis_art')->order('id desc')->limit(0,1)->select();
        $contactArt = M('contact_art')->order('id desc')->limit(0,1)->select();
//
        $this->assign('contactArt',$contactArt);
//        $this->assign('pro_disArt',$pro_disArt);
//        $this->assign('aboutArt',$aboutArt);
//        $this->assign('chooseArt',$chooseArt);
//        $this->assign('bannerImg',$bannerImg);
//        $this->assign('pro_disImg',$pro_disImg);
//        $this->assign('chooseImg',$chooseImg);
        $this->assign('introArt',$introArt);
        $this->assign('introImg',$introImg);
        $this->assign("cate",$cate);
        $this->display();
    }
}
